package com.kapo.egroup.common;


public enum ResponseEnum {

    SUCCESS(200, "用户操作成功"),
    NOT_LOGIN(401,"登录信息不存在，请重新登陆"),
    OPERATION_FAILED(402,"用户操作异常"),
    NO_ACCESS_PERMISSIONS(403,"用户无对应权限"),
    NOT_FOUND(404,"系统未找到"),
    TOKEN_ERROR(405, "令牌无效"),
    MESSAGE_ERROR(407,"不能申请自己的项目或邀请自己加入项目！"),
    LESSON_GROUP_ERROR(408,"你不能重复加入同一课程任务的多个小组！"),
    NOT_FOUND_USERID(405,"不存在的用户！"),
    EXCEPTION(500,"系统异常"),
    DElETE_FAILED(505, "系统删除失败"),



    LOGIN_FAILED(401,"登录失败"),
    CREDENTIALS_WRONG(401,"用户名或密码错误，登录失败！"),
    LOCKED_CREDENTIALS(401,"账户被锁，登录失败！"),
    DISABLED_CREDENTIALS(401,"账户被禁用，登录失败！"),
    LOGIN_EXPIRED(401,"账户过期，登录失败"),
    NOT_FOUND_CREDENTIALS(401,"账户不存在！"),

    DUPLICATE_USERNAME(406,"手机号已被注册！");



    private final int code;
    private final String desc;

    ResponseEnum(int code, String mes) {
        this.code = code;
        this.desc = mes;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
